package c.c.b.b.d;

import b.i.b.f;
import c.c.b.b.f.m;
import c.c.b.b.f.p;
import c.c.b.b.f.p.a;
import java.io.UnsupportedEncodingException;
import org.json.JSONObject;

/* compiled from: JsonStringRequest */
public class o extends n<String> {
    public o(int i, String str, JSONObject jSONObject, a<String> aVar) {
        super(i, str, jSONObject == null ? null : jSONObject.toString(), null);
    }

    public p<String> a(m mVar) {
        try {
            return new p(new String(mVar.b, f.l(mVar.c, "utf-8")), f.f(mVar));
        } catch (UnsupportedEncodingException e) {
            return new p(new c.c.b.b.h.f(e));
        }
    }
}
